#include "dvsclient_gui.h"
#include <QtGui/QApplication>
#include <QtCore/QTextCodec>
#include <QtCore/QObject>
#include <QtGui/QMessageBox>
#include <iostream>

struct Test
{
	int a;
	int b;
};

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	QTextCodec::setCodecForTr( QTextCodec::codecForLocale() );

// 	char c = 0x3F;
// 	QString qstr = QString::number(c, 16).toUpper();
// 	QString qstr2 = QString("%1-%2").arg(qstr).arg(qstr);
//  	QMessageBox::about( 0, "1", qstr2 );

	Test obj;
	obj.a = 1;
	obj.b = 2;

	char tmp[100];
	for ( int i = 0; i < 8; ++i )
		sprintf_s(tmp, "%02x ", (*(((char*)&obj)+i)));

	DVSClient_GUI w;
	w.show();
	return a.exec();
}
